#include <iostream>
#include <map>
using namespace std;

const int N = 1e5 + 10;

typedef pair<int,int> pii;

int n,S;
map<int,int> mp;

int main(){
	cin >> n >> S;
	for(int i = 1;i <= n;i++){
		int x,y;
		cin >> x >> y;
		mp[y] = x;
	}
	return 0;
} 
